home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
archive
/
cx201e.arj
/
MCXF.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-03-01
|
1KB
|
49 lines
@echo off
del cxf.exe
if "%1" == "mc" goto :MC
if "%1" == "wc" goto :WC
if "%1" == "mcdll" goto :MCDLL
if "%1" == "wcdll" goto :WCDLL
:usage
echo ------------------------------------------------------------------
echo This batch file creates CXF.EXE.
echo YOU MUST RUN OCM.EXE FIRST TO EXTRACT OBJECT CODE.
echo ------------------------------------------------------------------
echo mcxf mc - Microsoft C - using CX.OBJ
echo mcxf wc - Watcom C (32 bit) - using CX.OBJ
echo mcxf mcdll - Microsoft C - using CXOS2.DLL
echo mcxf wcdll - Watcom C (32 bit) - using CXOS2.DLL
echo ------------------------------------------------------------------
echo When using a C/C++ compiler:
echo set CXINC=include directory (no backslash, like c:\msvc\include)
echo set CXLIB=library directory (no backslash, like c:\msvc\lib)
echo ------------------------------------------------------------------
goto :end
:MC
cl -I%CXINC% -G2s -AL -c cxf.c
link /NOD/PM:VIO cxf cx,,,%CXLIB%\llibcep %CXLIB%\os2;
goto :end
:MCDLL
cl -I%CXINC% -G2s -AL -c cxf.c
link /NOD/PM:VIO cxf,,,cxos2 %CXLIB%\llibcep %CXLIB%\os2;
goto :end
:WC
if "%CXINC%" == "" set CXINC=c:\wc\h;e:\toolkit\c\os2h
wcl386 -I%CXINC% /d3 /zp1 /dCX32BIT cxf.c cx.obj
goto :end
:WCDLL
wcl386 -I%CXINC% /d3 /zp1 /dCX32BIT cxf.c cxos2.lib
goto :end
:end